package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.VipAppId;

import java.util.List;

public interface VipAppIdMapper extends IBaseMapper<VipAppId> {

    List<VipAppId> select(VipAppId record);

    /**
     * 根据openid查询单条记录
     *
     * @param vipMemberId
     * @return
     */
    VipAppId selectByOpenid(Long vipMemberId);
    
    VipAppId selectVipAppidByCode(VipAppId entity);
    /**
     * 删除记录
     *
     * @param record
     * @return
     */
    int deleteByVipAppId(VipAppId record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int insert(VipAppId record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int insertSelective(VipAppId record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    VipAppId selectByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int updateByPrimaryKeySelective(VipAppId record);

    /**
     *
     * @mbggenerated 2018-06-27
     */
    @Override
    int updateByPrimaryKey(VipAppId record);

    /**
     * 更新状态
     */
    int updateVipAppId(VipAppId record);

    /**
     * 查询formid
     */
    List<VipAppId>  selectVipAppId(VipAppId record);

}